﻿using System.Collections.Generic;
using Tauren.Form.Entity.Model;

namespace Tauren.Form.Entity.Output
{
    public class Form_Field_Primary_TableInfo_OutPut : Form_Field_Primary_TableInfo
    {
        /// <summary>
        /// 主表名称
        /// </summary>
        public string TableName { get; set; } = "";
        /// <summary>
        /// 子表数据
        /// </summary>
        public virtual List<Form_Field_Child_TableInfo_OutPut> Childs { get; set; } = new List<Form_Field_Child_TableInfo_OutPut>();
    }
    public class Form_Field_TableInfo_OutPut
    {

        /// <summary>
        /// 表单ID
        /// </summary>
        public long FormId { get; set; }

        /// <summary>
        /// 主表名
        /// </summary>
        public string TableCode { get; set; } = "";
        public long TableId { get; set; }

        /// <summary>
        /// 主表名称
        /// </summary>
        public string TableName { get; set; } = "";

        /// <summary>
        /// 主表用于外键字段
        /// </summary>
        public string PrimaryKey { get; set; } = "";
        /// <summary>
        /// 子表名
        /// </summary>
        public string ChildTableCode { get; set; } = "";
        /// <summary>
        /// 子表名称
        /// </summary>
        public string ChildTableName { get; set; } = "";

        /// <summary>
        /// 子表用于外键字段
        /// </summary>
        public string ForeignKey { get; set; } = "";


    }
}
